package com.by.mapper;

import com.by.bean.Management;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/15
 * @since JDK21
 */
@Mapper
public interface ManagementMapper extends BaseMapper {

    @MapKey("id")
    List<Map> query();


    int save(Management mag);

    Management queryByName(String username);

    int delete(String id);

    int update(Management mag);


}
